<?php
	include_once 'isLogin.php';
	
	$table_name = "user_investment";
	$table="companies";
	//获得数据
	if($_GET['id']!=false){
		$id=$_GET['id'];
		$sql=$table." c left join ".$table_name." u on c.id=u.company_id where u.user_id=$id";
		$row2['result']=$commonc->getList($sql, $sqlnum='', $key="c.title,c.id,u.money,u.date_buy,u.get",$debug='0');
	    foreach($row2['result'] as $key=>$row1){	
		}
		$smarty->assign('row',$row);
		$smarty->assign('row1',$row1);
		$smarty->assign('area',$area);
	}
	
	$smarty->display($_filename.".html");
	
?>